home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1993 December / PSL Monthly Shareware CD-ROM (December 1993).iso / prgmming / dos / basic / vol_inf.exe / FDATA.ASM < prev    next >
Assembly Source File  |  1993-01-16  |  1KB  |  33 lines

  1. ; updated 05/11/92
  2.  
  3. DOSSEG
  4. .MODEL MEDIUM, BASIC
  5.  
  6.     Public B$TEMPDATA, B$STRINGLEN, B$STRINGOFF
  7.  
  8. ;;;;;;«RM92»
  9.  
  10. ;======================================================================
  11. ; Use it to copy strings to this buffer to automatically
  12. ; append a null byte.  Also allow a shared data string area.
  13. ;
  14. ; Note:
  15. ; Int 21h, Function 60h requires that the output storage buffer be at
  16. ; least 128 bytes long.
  17. ; Schulman, "Undocumented DOS", (Addison Wesley 1990), page 565
  18. ; But, Dettmann, "DOS Programmer's Reference" 2d Ed. (Que 1989), page 660
  19. ; states that buffer is only 67 bytes long.  Which one is correct?
  20. ; I don't want to find out, so I picked the most conservative
  21. ;
  22. ; I now use a buffer of 130 bytes (2*(64+1)), to handle RENAME w/
  23. ; ASCIIZ strings of 64 byte length
  24. ;======================================================================
  25.  
  26. .DATA
  27.     EVEN
  28.     B$STRINGLEN   DW        0       ;string descriptor length
  29.     B$STRINGOFF   DW        0       ;string descriptor offset
  30.     B$TEMPDATA    DB    130 DUP(0)  ;fixed length string
  31.  
  32. END
  33.